package 新IO;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;


public class GetChannel{
	public static void main(String[] args) throws IOException {
		FileChannel fc=new FileInputStream("").getChannel();
		ByteBuffer buffer=ByteBuffer.allocate(1024);
		fc.read(buffer);
		while(buffer.hasRemaining()){
			System.out.println(buffer.get());
		}
	}
}